﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Model
{
    public class Teachers : BaseEntity
    {
        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "姓名")]
        [Column(TypeName = "varchar(50)")]
        public string name { get; set; }
        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "出生日期")]
        public DateTime birthday { get; set; }
        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "性别")]
        [Column(TypeName = "varchar(50)")]
        public string gender { get; set; }
        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "电话")]
        [Column(TypeName = "varchar(50)")]
        public string tel { get; set; }
        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "邮箱")]
        [Column(TypeName = "varchar(50)")]
        public string email { get; set; }
        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "QQ")]
        [Column(TypeName = "varchar(50)")]
        public string qqNumber { get; set; }
        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "家庭住址")]
        [Column(TypeName = "varchar(50)")]
        public string address { get; set; }
        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "密码")]
        [Column(TypeName = "varchar(50)")]
        public string pwd { get; set; }
        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "头像")]
        [Column(TypeName = "varchar(50)")]
        public string photo { get; set; }
        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "职位序号")]
        public Guid positionsId { get; set; }
    }
}
